
    $("header").load("1.head.html")
    $("footer").load("2.bottom.html")
    var map = new BMap.Map("allmap", {
        minZoom: 5,
        maxZoom: 19
    });
    map.centerAndZoom(new BMap.Point(121.36564, 31.22611), 19);
    map.enableScrollWheelZoom(true);
    map.addControl(new BMap.NavigationControl());
    map.addEventListener("click", function (e) {
        document.getElementById('lat').value = e.point.lat;
        document.getElementById('lng').value = e.point.lng;

    });

    var local = new BMap.LocalSearch(map, {
        renderOptions: {
            map: map
        }
    });

    function theLocation() {
        var city = document.getElementById("cityName").value;
        if (city != "") {
            local.search(city);
        }
    };

    function submit() {
        var lat = document.getElementById('lat');
        var lng = document.getElementById('lng');
        alert("经度：" + lng.value + "\n" + "纬度：" + lat.value);
    };


    let oLis = document.querySelectorAll(".tabli1")
    for (let i = 0; i < oLis.length; i++) {
        oLis[i].index = i
        oLis[i].onclick = function () {
            for (let j = 0; j < oLis.length; j++) {
                if (this.index == j) {
                    oLis[j].className = "bianse";
                } else {
                    oLis[j].className = ""
                }

            }
        }
    }

    $(".tabli1").click(function () {
        $(".leftnottommd").css({
            display: "none"
        })
    })

    $("#dianji").click(function () {
        $(".leftnottommd").css({
            display: "block"
        })
    })